package com.neusoft.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neusoft.entity.Rent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface RentDao extends BaseDao<Rent>{
    Rent queryById(Integer id);

    Rent queryByHouseId(Integer houseid);

    List<Rent> queryAllByLimit(@Param("offset") int offset, @Param("limit") int limit, Rent rent);

    List<Rent> queryAll(IPage<Rent> page, @Param("bean") Rent bean);

    int deleteByHouseId(Integer houseid);

}
